<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>IgH EtherCAT Master: fsm_slave.c File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">IgH EtherCAT Master
   &#160;<span id="projectnumber">1.5.2</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',false,false,'search.php','Search');
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('fsm__slave_8c.html','');});
</script>
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">fsm_slave.c File Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>EtherCAT slave (SDO) state machine.  
<a href="#details">More...</a></p>

<p><a href="fsm__slave_8c_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a5c3b32656d605af3c1f2e5534568b49a"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="fsm__slave_8c.html#a5c3b32656d605af3c1f2e5534568b49a">ec_fsm_slave_state_idle</a> (<a class="el" href="fsm__slave_8h.html#a6d226b26b2608f564263a2bd346c05ac">ec_fsm_slave_t</a> *fsm, <a class="el" href="structec__datagram__t.html">ec_datagram_t</a> *datagram)</td></tr>
<tr class="memdesc:a5c3b32656d605af3c1f2e5534568b49a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Slave state: IDLE.  <a href="#a5c3b32656d605af3c1f2e5534568b49a">More...</a><br /></td></tr>
<tr class="separator:a5c3b32656d605af3c1f2e5534568b49a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae45b917e77b92b3e41df89720d33114c"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="fsm__slave_8c.html#ae45b917e77b92b3e41df89720d33114c">ec_fsm_slave_state_ready</a> (<a class="el" href="fsm__slave_8h.html#a6d226b26b2608f564263a2bd346c05ac">ec_fsm_slave_t</a> *fsm, <a class="el" href="structec__datagram__t.html">ec_datagram_t</a> *datagram)</td></tr>
<tr class="memdesc:ae45b917e77b92b3e41df89720d33114c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Slave state: READY.  <a href="#ae45b917e77b92b3e41df89720d33114c">More...</a><br /></td></tr>
<tr class="separator:ae45b917e77b92b3e41df89720d33114c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a69201c3dc1cb3155a6ca50cb7f33869c"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="fsm__slave_8c.html#a69201c3dc1cb3155a6ca50cb7f33869c">ec_fsm_slave_action_process_sdo</a> (<a class="el" href="fsm__slave_8h.html#a6d226b26b2608f564263a2bd346c05ac">ec_fsm_slave_t</a> *fsm, <a class="el" href="structec__datagram__t.html">ec_datagram_t</a> *datagram)</td></tr>
<tr class="memdesc:a69201c3dc1cb3155a6ca50cb7f33869c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Check for pending SDO requests and process one.  <a href="#a69201c3dc1cb3155a6ca50cb7f33869c">More...</a><br /></td></tr>
<tr class="separator:a69201c3dc1cb3155a6ca50cb7f33869c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a81403b6006691c9b4daf67d5da9feb2a"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="fsm__slave_8c.html#a81403b6006691c9b4daf67d5da9feb2a">ec_fsm_slave_state_sdo_request</a> (<a class="el" href="fsm__slave_8h.html#a6d226b26b2608f564263a2bd346c05ac">ec_fsm_slave_t</a> *fsm, <a class="el" href="structec__datagram__t.html">ec_datagram_t</a> *datagram)</td></tr>
<tr class="memdesc:a81403b6006691c9b4daf67d5da9feb2a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Slave state: SDO_REQUEST.  <a href="#a81403b6006691c9b4daf67d5da9feb2a">More...</a><br /></td></tr>
<tr class="separator:a81403b6006691c9b4daf67d5da9feb2a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1e2f2f2ceff8817c26b401394efe0e6e"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="fsm__slave_8c.html#a1e2f2f2ceff8817c26b401394efe0e6e">ec_fsm_slave_action_process_reg</a> (<a class="el" href="fsm__slave_8h.html#a6d226b26b2608f564263a2bd346c05ac">ec_fsm_slave_t</a> *fsm, <a class="el" href="structec__datagram__t.html">ec_datagram_t</a> *datagram)</td></tr>
<tr class="memdesc:a1e2f2f2ceff8817c26b401394efe0e6e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Check for pending register requests and process one.  <a href="#a1e2f2f2ceff8817c26b401394efe0e6e">More...</a><br /></td></tr>
<tr class="separator:a1e2f2f2ceff8817c26b401394efe0e6e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1da03c24b580882065b01e431c0ed82e"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="fsm__slave_8c.html#a1da03c24b580882065b01e431c0ed82e">ec_fsm_slave_state_reg_request</a> (<a class="el" href="fsm__slave_8h.html#a6d226b26b2608f564263a2bd346c05ac">ec_fsm_slave_t</a> *fsm, <a class="el" href="structec__datagram__t.html">ec_datagram_t</a> *datagram)</td></tr>
<tr class="memdesc:a1da03c24b580882065b01e431c0ed82e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Slave state: Register request.  <a href="#a1da03c24b580882065b01e431c0ed82e">More...</a><br /></td></tr>
<tr class="separator:a1da03c24b580882065b01e431c0ed82e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8efbf4fab101d922fef86e335eec1f97"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="fsm__slave_8c.html#a8efbf4fab101d922fef86e335eec1f97">ec_fsm_slave_action_process_foe</a> (<a class="el" href="fsm__slave_8h.html#a6d226b26b2608f564263a2bd346c05ac">ec_fsm_slave_t</a> *fsm, <a class="el" href="structec__datagram__t.html">ec_datagram_t</a> *datagram)</td></tr>
<tr class="memdesc:a8efbf4fab101d922fef86e335eec1f97"><td class="mdescLeft">&#160;</td><td class="mdescRight">Check for pending FoE requests and process one.  <a href="#a8efbf4fab101d922fef86e335eec1f97">More...</a><br /></td></tr>
<tr class="separator:a8efbf4fab101d922fef86e335eec1f97"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab5d34b7d8393ff86923a42ced668c0b9"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="fsm__slave_8c.html#ab5d34b7d8393ff86923a42ced668c0b9">ec_fsm_slave_state_foe_request</a> (<a class="el" href="fsm__slave_8h.html#a6d226b26b2608f564263a2bd346c05ac">ec_fsm_slave_t</a> *fsm, <a class="el" href="structec__datagram__t.html">ec_datagram_t</a> *datagram)</td></tr>
<tr class="memdesc:ab5d34b7d8393ff86923a42ced668c0b9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Slave state: FOE REQUEST.  <a href="#ab5d34b7d8393ff86923a42ced668c0b9">More...</a><br /></td></tr>
<tr class="separator:ab5d34b7d8393ff86923a42ced668c0b9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aee4b2c5da4c8811dc81fd40cc25ac80c"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="fsm__slave_8c.html#aee4b2c5da4c8811dc81fd40cc25ac80c">ec_fsm_slave_action_process_soe</a> (<a class="el" href="fsm__slave_8h.html#a6d226b26b2608f564263a2bd346c05ac">ec_fsm_slave_t</a> *fsm, <a class="el" href="structec__datagram__t.html">ec_datagram_t</a> *datagram)</td></tr>
<tr class="memdesc:aee4b2c5da4c8811dc81fd40cc25ac80c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Check for pending SoE requests and process one.  <a href="#aee4b2c5da4c8811dc81fd40cc25ac80c">More...</a><br /></td></tr>
<tr class="separator:aee4b2c5da4c8811dc81fd40cc25ac80c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac379741b8127b8228d9119480db233fb"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="fsm__slave_8c.html#ac379741b8127b8228d9119480db233fb">ec_fsm_slave_state_soe_request</a> (<a class="el" href="fsm__slave_8h.html#a6d226b26b2608f564263a2bd346c05ac">ec_fsm_slave_t</a> *fsm, <a class="el" href="structec__datagram__t.html">ec_datagram_t</a> *datagram)</td></tr>
<tr class="memdesc:ac379741b8127b8228d9119480db233fb"><td class="mdescLeft">&#160;</td><td class="mdescRight">Slave state: SOE_REQUEST.  <a href="#ac379741b8127b8228d9119480db233fb">More...</a><br /></td></tr>
<tr class="separator:ac379741b8127b8228d9119480db233fb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab7af644e2e05a661f5dedfc65daa423e"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="fsm__slave_8c.html#ab7af644e2e05a661f5dedfc65daa423e">ec_fsm_slave_init</a> (<a class="el" href="fsm__slave_8h.html#a6d226b26b2608f564263a2bd346c05ac">ec_fsm_slave_t</a> *fsm, <a class="el" href="globals_8h.html#a8d9ffff7dbe1babaa4786a63f2860d57">ec_slave_t</a> *slave)</td></tr>
<tr class="memdesc:ab7af644e2e05a661f5dedfc65daa423e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructor.  <a href="#ab7af644e2e05a661f5dedfc65daa423e">More...</a><br /></td></tr>
<tr class="separator:ab7af644e2e05a661f5dedfc65daa423e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aaf633228f4ba73115d911fae6ede334d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="fsm__slave_8c.html#aaf633228f4ba73115d911fae6ede334d">ec_fsm_slave_clear</a> (<a class="el" href="fsm__slave_8h.html#a6d226b26b2608f564263a2bd346c05ac">ec_fsm_slave_t</a> *fsm)</td></tr>
<tr class="memdesc:aaf633228f4ba73115d911fae6ede334d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Destructor.  <a href="#aaf633228f4ba73115d911fae6ede334d">More...</a><br /></td></tr>
<tr class="separator:aaf633228f4ba73115d911fae6ede334d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a64e44cb68fa46489e34b0f6f98a2d450"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="fsm__slave_8c.html#a64e44cb68fa46489e34b0f6f98a2d450">ec_fsm_slave_exec</a> (<a class="el" href="fsm__slave_8h.html#a6d226b26b2608f564263a2bd346c05ac">ec_fsm_slave_t</a> *fsm, <a class="el" href="structec__datagram__t.html">ec_datagram_t</a> *datagram)</td></tr>
<tr class="memdesc:a64e44cb68fa46489e34b0f6f98a2d450"><td class="mdescLeft">&#160;</td><td class="mdescRight">Executes the current state of the state machine.  <a href="#a64e44cb68fa46489e34b0f6f98a2d450">More...</a><br /></td></tr>
<tr class="separator:a64e44cb68fa46489e34b0f6f98a2d450"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3e9b702c8379fb8324826a220847a539"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="fsm__slave_8c.html#a3e9b702c8379fb8324826a220847a539">ec_fsm_slave_set_ready</a> (<a class="el" href="fsm__slave_8h.html#a6d226b26b2608f564263a2bd346c05ac">ec_fsm_slave_t</a> *fsm)</td></tr>
<tr class="memdesc:a3e9b702c8379fb8324826a220847a539"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the current state of the state machine to READY.  <a href="#a3e9b702c8379fb8324826a220847a539">More...</a><br /></td></tr>
<tr class="separator:a3e9b702c8379fb8324826a220847a539"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af12d069fda4382f991468ea84ff572a8"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="fsm__slave_8c.html#af12d069fda4382f991468ea84ff572a8">ec_fsm_slave_is_ready</a> (const <a class="el" href="fsm__slave_8h.html#a6d226b26b2608f564263a2bd346c05ac">ec_fsm_slave_t</a> *fsm)</td></tr>
<tr class="memdesc:af12d069fda4382f991468ea84ff572a8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns, if the FSM is currently not busy and ready to execute.  <a href="#af12d069fda4382f991468ea84ff572a8">More...</a><br /></td></tr>
<tr class="separator:af12d069fda4382f991468ea84ff572a8"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>EtherCAT slave (SDO) state machine. </p>

<p class="definition">Definition in file <a class="el" href="fsm__slave_8c_source.html">fsm_slave.c</a>.</p>
</div><h2 class="groupheader">Function Documentation</h2>
<a id="a5c3b32656d605af3c1f2e5534568b49a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5c3b32656d605af3c1f2e5534568b49a">&#9670;&nbsp;</a></span>ec_fsm_slave_state_idle()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ec_fsm_slave_state_idle </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="fsm__slave_8h.html#a6d226b26b2608f564263a2bd346c05ac">ec_fsm_slave_t</a> *&#160;</td>
          <td class="paramname"><em>fsm</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structec__datagram__t.html">ec_datagram_t</a> *&#160;</td>
          <td class="paramname"><em>datagram</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Slave state: IDLE. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">fsm</td><td>Slave state machine. </td></tr>
    <tr><td class="paramname">datagram</td><td>Datagram to use. </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="fsm__slave_8c_source.html#l00177">177</a> of file <a class="el" href="fsm__slave_8c_source.html">fsm_slave.c</a>.</p>

</div>
</div>
<a id="ae45b917e77b92b3e41df89720d33114c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae45b917e77b92b3e41df89720d33114c">&#9670;&nbsp;</a></span>ec_fsm_slave_state_ready()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ec_fsm_slave_state_ready </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="fsm__slave_8h.html#a6d226b26b2608f564263a2bd346c05ac">ec_fsm_slave_t</a> *&#160;</td>
          <td class="paramname"><em>fsm</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structec__datagram__t.html">ec_datagram_t</a> *&#160;</td>
          <td class="paramname"><em>datagram</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Slave state: READY. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">fsm</td><td>Slave state machine. </td></tr>
    <tr><td class="paramname">datagram</td><td>Datagram to use. </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="fsm__slave_8c_source.html#l00189">189</a> of file <a class="el" href="fsm__slave_8c_source.html">fsm_slave.c</a>.</p>

</div>
</div>
<a id="a69201c3dc1cb3155a6ca50cb7f33869c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a69201c3dc1cb3155a6ca50cb7f33869c">&#9670;&nbsp;</a></span>ec_fsm_slave_action_process_sdo()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int ec_fsm_slave_action_process_sdo </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="fsm__slave_8h.html#a6d226b26b2608f564263a2bd346c05ac">ec_fsm_slave_t</a> *&#160;</td>
          <td class="paramname"><em>fsm</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structec__datagram__t.html">ec_datagram_t</a> *&#160;</td>
          <td class="paramname"><em>datagram</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Check for pending SDO requests and process one. </p>
<dl class="section return"><dt>Returns</dt><dd>non-zero, if an SDO request is processed. </dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">fsm</td><td>Slave state machine. </td></tr>
    <tr><td class="paramname">datagram</td><td>Datagram to use. </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="fsm__slave_8c_source.html#l00221">221</a> of file <a class="el" href="fsm__slave_8c_source.html">fsm_slave.c</a>.</p>

</div>
</div>
<a id="a81403b6006691c9b4daf67d5da9feb2a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a81403b6006691c9b4daf67d5da9feb2a">&#9670;&nbsp;</a></span>ec_fsm_slave_state_sdo_request()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ec_fsm_slave_state_sdo_request </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="fsm__slave_8h.html#a6d226b26b2608f564263a2bd346c05ac">ec_fsm_slave_t</a> *&#160;</td>
          <td class="paramname"><em>fsm</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structec__datagram__t.html">ec_datagram_t</a> *&#160;</td>
          <td class="paramname"><em>datagram</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Slave state: SDO_REQUEST. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">fsm</td><td>Slave state machine. </td></tr>
    <tr><td class="paramname">datagram</td><td>Datagram to use. </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="fsm__slave_8c_source.html#l00271">271</a> of file <a class="el" href="fsm__slave_8c_source.html">fsm_slave.c</a>.</p>

</div>
</div>
<a id="a1e2f2f2ceff8817c26b401394efe0e6e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1e2f2f2ceff8817c26b401394efe0e6e">&#9670;&nbsp;</a></span>ec_fsm_slave_action_process_reg()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int ec_fsm_slave_action_process_reg </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="fsm__slave_8h.html#a6d226b26b2608f564263a2bd346c05ac">ec_fsm_slave_t</a> *&#160;</td>
          <td class="paramname"><em>fsm</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structec__datagram__t.html">ec_datagram_t</a> *&#160;</td>
          <td class="paramname"><em>datagram</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Check for pending register requests and process one. </p>
<dl class="section return"><dt>Returns</dt><dd>non-zero, if a register request is processed. </dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">fsm</td><td>Slave state machine. </td></tr>
    <tr><td class="paramname">datagram</td><td>Datagram to use. </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="fsm__slave_8c_source.html#l00307">307</a> of file <a class="el" href="fsm__slave_8c_source.html">fsm_slave.c</a>.</p>

</div>
</div>
<a id="a1da03c24b580882065b01e431c0ed82e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1da03c24b580882065b01e431c0ed82e">&#9670;&nbsp;</a></span>ec_fsm_slave_state_reg_request()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ec_fsm_slave_state_reg_request </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="fsm__slave_8h.html#a6d226b26b2608f564263a2bd346c05ac">ec_fsm_slave_t</a> *&#160;</td>
          <td class="paramname"><em>fsm</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structec__datagram__t.html">ec_datagram_t</a> *&#160;</td>
          <td class="paramname"><em>datagram</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Slave state: Register request. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">fsm</td><td>Slave state machine. </td></tr>
    <tr><td class="paramname">datagram</td><td>Datagram to use. </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="fsm__slave_8c_source.html#l00373">373</a> of file <a class="el" href="fsm__slave_8c_source.html">fsm_slave.c</a>.</p>

</div>
</div>
<a id="a8efbf4fab101d922fef86e335eec1f97"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8efbf4fab101d922fef86e335eec1f97">&#9670;&nbsp;</a></span>ec_fsm_slave_action_process_foe()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int ec_fsm_slave_action_process_foe </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="fsm__slave_8h.html#a6d226b26b2608f564263a2bd346c05ac">ec_fsm_slave_t</a> *&#160;</td>
          <td class="paramname"><em>fsm</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structec__datagram__t.html">ec_datagram_t</a> *&#160;</td>
          <td class="paramname"><em>datagram</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Check for pending FoE requests and process one. </p>
<dl class="section return"><dt>Returns</dt><dd>non-zero, if an FoE request is processed. </dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">fsm</td><td>Slave state machine. </td></tr>
    <tr><td class="paramname">datagram</td><td>Datagram to use. </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="fsm__slave_8c_source.html#l00425">425</a> of file <a class="el" href="fsm__slave_8c_source.html">fsm_slave.c</a>.</p>

</div>
</div>
<a id="ab5d34b7d8393ff86923a42ced668c0b9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab5d34b7d8393ff86923a42ced668c0b9">&#9670;&nbsp;</a></span>ec_fsm_slave_state_foe_request()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ec_fsm_slave_state_foe_request </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="fsm__slave_8h.html#a6d226b26b2608f564263a2bd346c05ac">ec_fsm_slave_t</a> *&#160;</td>
          <td class="paramname"><em>fsm</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structec__datagram__t.html">ec_datagram_t</a> *&#160;</td>
          <td class="paramname"><em>datagram</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Slave state: FOE REQUEST. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">fsm</td><td>Slave state machine. </td></tr>
    <tr><td class="paramname">datagram</td><td>Datagram to use. </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="fsm__slave_8c_source.html#l00465">465</a> of file <a class="el" href="fsm__slave_8c_source.html">fsm_slave.c</a>.</p>

</div>
</div>
<a id="aee4b2c5da4c8811dc81fd40cc25ac80c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aee4b2c5da4c8811dc81fd40cc25ac80c">&#9670;&nbsp;</a></span>ec_fsm_slave_action_process_soe()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int ec_fsm_slave_action_process_soe </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="fsm__slave_8h.html#a6d226b26b2608f564263a2bd346c05ac">ec_fsm_slave_t</a> *&#160;</td>
          <td class="paramname"><em>fsm</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structec__datagram__t.html">ec_datagram_t</a> *&#160;</td>
          <td class="paramname"><em>datagram</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Check for pending SoE requests and process one. </p>
<dl class="section return"><dt>Returns</dt><dd>non-zero, if a request is processed. </dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">fsm</td><td>Slave state machine. </td></tr>
    <tr><td class="paramname">datagram</td><td>Datagram to use. </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="fsm__slave_8c_source.html#l00502">502</a> of file <a class="el" href="fsm__slave_8c_source.html">fsm_slave.c</a>.</p>

</div>
</div>
<a id="ac379741b8127b8228d9119480db233fb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac379741b8127b8228d9119480db233fb">&#9670;&nbsp;</a></span>ec_fsm_slave_state_soe_request()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ec_fsm_slave_state_soe_request </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="fsm__slave_8h.html#a6d226b26b2608f564263a2bd346c05ac">ec_fsm_slave_t</a> *&#160;</td>
          <td class="paramname"><em>fsm</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structec__datagram__t.html">ec_datagram_t</a> *&#160;</td>
          <td class="paramname"><em>datagram</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Slave state: SOE_REQUEST. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">fsm</td><td>Slave state machine. </td></tr>
    <tr><td class="paramname">datagram</td><td>Datagram to use. </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="fsm__slave_8c_source.html#l00552">552</a> of file <a class="el" href="fsm__slave_8c_source.html">fsm_slave.c</a>.</p>

</div>
</div>
<a id="ab7af644e2e05a661f5dedfc65daa423e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab7af644e2e05a661f5dedfc65daa423e">&#9670;&nbsp;</a></span>ec_fsm_slave_init()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ec_fsm_slave_init </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="fsm__slave_8h.html#a6d226b26b2608f564263a2bd346c05ac">ec_fsm_slave_t</a> *&#160;</td>
          <td class="paramname"><em>fsm</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="globals_8h.html#a8d9ffff7dbe1babaa4786a63f2860d57">ec_slave_t</a> *&#160;</td>
          <td class="paramname"><em>slave</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Constructor. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">fsm</td><td>Slave state machine. </td></tr>
    <tr><td class="paramname">slave</td><td>EtherCAT slave. </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="fsm__slave_8c_source.html#l00060">60</a> of file <a class="el" href="fsm__slave_8c_source.html">fsm_slave.c</a>.</p>

</div>
</div>
<a id="aaf633228f4ba73115d911fae6ede334d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aaf633228f4ba73115d911fae6ede334d">&#9670;&nbsp;</a></span>ec_fsm_slave_clear()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ec_fsm_slave_clear </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="fsm__slave_8h.html#a6d226b26b2608f564263a2bd346c05ac">ec_fsm_slave_t</a> *&#160;</td>
          <td class="paramname"><em>fsm</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Destructor. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">fsm</td><td>Master state machine. </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="fsm__slave_8c_source.html#l00085">85</a> of file <a class="el" href="fsm__slave_8c_source.html">fsm_slave.c</a>.</p>

</div>
</div>
<a id="a64e44cb68fa46489e34b0f6f98a2d450"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a64e44cb68fa46489e34b0f6f98a2d450">&#9670;&nbsp;</a></span>ec_fsm_slave_exec()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int ec_fsm_slave_exec </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="fsm__slave_8h.html#a6d226b26b2608f564263a2bd346c05ac">ec_fsm_slave_t</a> *&#160;</td>
          <td class="paramname"><em>fsm</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structec__datagram__t.html">ec_datagram_t</a> *&#160;</td>
          <td class="paramname"><em>datagram</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Executes the current state of the state machine. </p>
<dl class="section return"><dt>Returns</dt><dd>1 if <em>datagram</em> was used, else 0. </dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">fsm</td><td>Slave state machine. </td></tr>
    <tr><td class="paramname">datagram</td><td>New datagram to use. </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="fsm__slave_8c_source.html#l00123">123</a> of file <a class="el" href="fsm__slave_8c_source.html">fsm_slave.c</a>.</p>

</div>
</div>
<a id="a3e9b702c8379fb8324826a220847a539"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3e9b702c8379fb8324826a220847a539">&#9670;&nbsp;</a></span>ec_fsm_slave_set_ready()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ec_fsm_slave_set_ready </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="fsm__slave_8h.html#a6d226b26b2608f564263a2bd346c05ac">ec_fsm_slave_t</a> *&#160;</td>
          <td class="paramname"><em>fsm</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Sets the current state of the state machine to READY. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">fsm</td><td>Slave state machine. </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="fsm__slave_8c_source.html#l00148">148</a> of file <a class="el" href="fsm__slave_8c_source.html">fsm_slave.c</a>.</p>

</div>
</div>
<a id="af12d069fda4382f991468ea84ff572a8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af12d069fda4382f991468ea84ff572a8">&#9670;&nbsp;</a></span>ec_fsm_slave_is_ready()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int ec_fsm_slave_is_ready </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="fsm__slave_8h.html#a6d226b26b2608f564263a2bd346c05ac">ec_fsm_slave_t</a> *&#160;</td>
          <td class="paramname"><em>fsm</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns, if the FSM is currently not busy and ready to execute. </p>
<dl class="section return"><dt>Returns</dt><dd>Non-zero if ready. </dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">fsm</td><td>Slave state machine. </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="fsm__slave_8c_source.html#l00164">164</a> of file <a class="el" href="fsm__slave_8c_source.html">fsm_slave.c</a>.</p>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_c1346cf4828efdd0d2baf0d391d01b77.html">master</a></li><li class="navelem"><a class="el" href="fsm__slave_8c.html">fsm_slave.c</a></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li>
  </ul>
</div>
</body>
</html>
